package socketHandler;
/**
 * 
 * @author Peter Steiner & Fredrik Wallenius
 *
 */
import java.util.ArrayList;
import java.util.StringTokenizer;

public class StringHandler {
	
	final static String seperateToken = "<>";
	
	public static ArrayList<String> MessageType(String str){

		ArrayList<String> input = new ArrayList<String>();
		
		StringTokenizer tokenizer = new StringTokenizer(str); 
		while (tokenizer.hasMoreTokens()) { 
	        input.add(tokenizer.nextToken(seperateToken));
	    }
		return input;
	}
}
